package com.xnfh.login

import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View.OnClickListener
import com.xnfh.framework.base.BaseActivity
import com.xnfh.framework.utils.KVUtil
import com.xnfh.login.databinding.ActivitySettingConfigLayoutBinding

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2024/1/3 16:14
 * @UpdateUser: ziheng
 * @UpdateDate: 2024/1/3 16:14
 * @UpdateRemark: 更新说明
 */
class SettingConfigActivity: BaseActivity<ActivitySettingConfigLayoutBinding>() {
    companion object{
        val MIAN_YAN = "MIAN_YAN"
        fun start(context: Context){
            val intent = Intent(context, SettingConfigActivity::class.java)
            context.startActivity(intent)
        }
    }
    override fun getLayoutID(): Int = R.layout.activity_setting_config_layout

    override fun init() {
        val boolean = KVUtil.getBoolean(MIAN_YAN, false)
        mBind.configMy.isChecked = boolean
        mBind.configMy.setOnCheckedChangeListener { buttonView, isChecked ->
            KVUtil.put(MIAN_YAN, isChecked)
        }
    }

    override fun observe() {
    }
}